package com.ruoyi.yun.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yun.mapper.YunCoufigPfmconfigMapper;
import com.ruoyi.yun.domain.YunCoufigPfmconfig;
import com.ruoyi.yun.service.IYunCoufigPfmconfigService;

/**
 * 平台配置列Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-24
 */
@Service
public class YunCoufigPfmconfigServiceImpl implements IYunCoufigPfmconfigService 
{
    @Autowired
    private YunCoufigPfmconfigMapper yunCoufigPfmconfigMapper;

    /**
     * 查询平台配置列
     * 
     * @param id 平台配置列主键
     * @return 平台配置列
     */
    @Override
    public YunCoufigPfmconfig selectYunCoufigPfmconfigById(Long id)
    {
        return yunCoufigPfmconfigMapper.selectYunCoufigPfmconfigById(id);
    }

    /**
     * 查询平台配置列列表
     * 
     * @param yunCoufigPfmconfig 平台配置列
     * @return 平台配置列
     */
    @Override
    public List<YunCoufigPfmconfig> selectYunCoufigPfmconfigList(YunCoufigPfmconfig yunCoufigPfmconfig)
    {
        return yunCoufigPfmconfigMapper.selectYunCoufigPfmconfigList(yunCoufigPfmconfig);
    }

    /**
     * 新增平台配置列
     * 
     * @param yunCoufigPfmconfig 平台配置列
     * @return 结果
     */
    @Override
    public int insertYunCoufigPfmconfig(YunCoufigPfmconfig yunCoufigPfmconfig)
    {
        return yunCoufigPfmconfigMapper.insertYunCoufigPfmconfig(yunCoufigPfmconfig);
    }

    /**
     * 修改平台配置列
     * 
     * @param yunCoufigPfmconfig 平台配置列
     * @return 结果
     */
    @Override
    public int updateYunCoufigPfmconfig(YunCoufigPfmconfig yunCoufigPfmconfig)
    {
        yunCoufigPfmconfig.setUpdateTime(DateUtils.getNowDate());
        return yunCoufigPfmconfigMapper.updateYunCoufigPfmconfig(yunCoufigPfmconfig);
    }

    /**
     * 批量删除平台配置列
     * 
     * @param ids 需要删除的平台配置列主键
     * @return 结果
     */
    @Override
    public int deleteYunCoufigPfmconfigByIds(Long[] ids)
    {
        return yunCoufigPfmconfigMapper.deleteYunCoufigPfmconfigByIds(ids);
    }

    /**
     * 删除平台配置列信息
     * 
     * @param id 平台配置列主键
     * @return 结果
     */
    @Override
    public int deleteYunCoufigPfmconfigById(Long id)
    {
        return yunCoufigPfmconfigMapper.deleteYunCoufigPfmconfigById(id);
    }
}
